Ext.define('AppView.sys.organization.OrganizationStore',{
	extend:'Ext.data.TreeStore',
    fields:[
        {name:'id'},
        {name:'text'},
		{name:'orgName'},
		{name:'orgCode'},
		{name:'orgLevel'},
		{name:'isUse'}
    ],
    proxy : {
		type : 'ajax',
		url : '/sys/organization/tree.do', // 请求url
		reader : {
			type : 'json'
		}
	},
	root : {
		text : '根节点',
		id : 'root',
		expanded : true
	},
	clearOnLoad : true,
	nodeParam: 'id'
});